package cn.com.connext.scrm.web.rest.enums;


public enum ReducePointEnum {
    ZERO(0, "其他"),
    ONE(1, "积分兑换"),
    TWO(2, "交易退积分"),
    THREE(3, "参与活动消耗积分"),
    FOUR(4, "惩罚扣积分"),
    FIVE(5, "积分调整"),
    SIX(6, "积分失效");
    private int code;
    private String name;

    ReducePointEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static String getValue(Integer req) {
        switch (req) {
            case 0:
                return ZERO.name;
            case 1:
                return ONE.name;
            case 2:
                return TWO.name;
            case 3:
                return THREE.name;
            case 4:
                return FOUR.name;
            case 5:
                return FIVE.name;
            case 6:
                return SIX.name;
            default:
                return ZERO.name;
        }
    }
}
